package com.motong.gongdan.vo.system.tree.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashSet;
import java.util.Objects;
import java.util.Set;

@Data
@ApiModel("删除树请求")
public class TreeDelQuery {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty(value = "ids",hidden = true)
    private Set<Long> ids = new HashSet<>();

    public void setId(Long id){
        if (Objects.nonNull(id)){
            this.ids.add(id);
        }
        this.id = id;
    }

}
